package com.atguigu.gmall.model.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
// 所有实体类继承 BaseEntity
@Data
public class BaseEntity implements Serializable {
    // 主键ID自增  IdType.AUTO
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;
}
